package org.dromara.system.domain.bo;

import org.dromara.system.domain.AppProcurementDetail;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 采购详情业务对象 app_procurement_detail
 *
 * @author Lion Li
 * @date 2025-09-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppProcurementDetail.class, reverseConvertGenerate = false)
public class AppProcurementDetailBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 采购计划编号
     */
    private String planCode;

    /**
     * 原料类型ID
     */
    private Long materialTypeId;

    /**
     * 种类ID
     */
    private Long categoryId;

    /**
     * 计划采购量（吨）
     */
    @NotNull(message = "计划采购量（吨）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long plannedWeight;

    /**
     * 计划采购数（车）
     */
    @NotNull(message = "计划采购数（车）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long plannedTruckNum;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
